package org.maggioni.springsandbox.rehearsals.e01applicationcontext.e01dependencyinjection;


import org.maggioni.springsandbox.model.draw.shapes.Shape;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {

	public static void main(String[] args) {
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext(Main.class.getName().replace(".","/")+"-applicationContext.xml");
		Shape shape = (Shape) applicationContext.getBean("shape");
		shape.draw();
	}

}
